package com.dddd.blog.bloguser;


import com.dddd.blog.api.user.pojo.User;
import com.dddd.blog.blogcommon.pojo.vo.UserListVO;
import com.dddd.blog.bloguser.mapper.UserMapper;
import com.dddd.blog.bloguser.service.IUserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class BlogUserTest02 {

    @Autowired
    private IUserService userService;

    @Autowired
    private UserMapper userMapper;

    @Test
    public void testGetUserListVO(){
        List<UserListVO> list = userService.getUserList();
        System.out.println(list.get(0));
    }


    @Test
    public void tetsGetUserList(){
        List<User> list = userMapper.selectList(null);
        System.out.println(list.get(0));
    }
}
